/**
 *  三违信息管理
 *  @module api/manage
 */
import axios from '@/utils/axios.js'
const API_HOST = ''

/**
 * 新增三维信息
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const addVioEvent = (data) => axios({
	method: 'post',
	data: data,
	url: API_HOST + '/vioInformation/process/add'
})

/**
 * 更新三维信息
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const editVioEvent = (data) => axios({
	method: 'put',
	data: data,
	url: API_HOST + '/vioInformation/process/edit'
})

/**
 * 删除三维信息
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const removeVioEvent = (data) => axios({
	method: 'delete',
	data: data,
	url: API_HOST + '/vioInformation/process/remove'
})

/**
 * 分页三维信息
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const pageVioEvent = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/vioInformation/process/page'
})

/**
 * 高级分页三维信息
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const pageSeniorVioEvent = (data) => axios({
	method: 'post',
	data: data,
	url: API_HOST + '/vioInformation/process/pageSenior'
})


/**
 * 三违事件类型分页
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const pageVioEvents = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/vioEvent/management/page'
})

/**
 * 三违危害类型分页
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const pageVioDamage = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/vioDamage/management/page'
})

/**
 * 三违条款类型分页
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const pageVioType = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/vioType/management/page'
})

/**
 * 三违条款分页
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const pageVioItem = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/vio/item/page'
})


/**
 * 员工资料分页
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const pageStaff = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/system/worker/list'
})

/**
 * 违章人员资料分页
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const listWorker = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/vioWorker/foreign/use/list'
})
/**
 * 上报人员资料分页
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const listReporter= (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/system/worker/use/list'
})

/**
 * 三违审批
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const postUpdateState = (data) => axios({
	method: 'post',
	data: data,
	url: API_HOST + '/vioInformation/process/updateState'
})

/**
 * 三违信息报表展示
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const getInformation = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/check/control/information'
})

/**
 * 三违信息报表分页
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const getInformationPage = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/check/control/informationPage'
})

/**
 * 三违条款分析
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const getItemCount = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/check/control/itemCount'
})

/**
 * 三违事件类型分析
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const getEventCount = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/check/control/eventCount'
})

/**
 * 三违危害类型分析
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const getDamageCount = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/check/control/damageCount'
})

/**
 * 今日三违概况
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const getTodayCount = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/check/control/todayCount'
})

/**
 * 今年三违概况
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const getYearCount = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/check/control/yearCount'
})

/**
 * 三违返还报表
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const getHomeReturn = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/vioReturn/report/homeReturn'
})

/**
 * 三违管理考核排名
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const getLeaderPage = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/check/control/leaderPage'
})

/**
 * 三违员工考核排名
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const getLeaderWorkerPage = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/check/control/leaderWorkerPage'
})

/**
 * 三违区队考核排名
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const getTeamControlPage = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/check/control/teamControlPage'
})

/**
 * 人员下拉-无权限
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const getUseWorkerList = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/vioWorker/foreign/use/list'
})

/**
 * 员工资历有权限
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const getUseStaff = (data) => axios({
	method: 'get',
	data: data,
	url: API_HOST + '/system/worker/use/list'
})


